package com.yzy.fly.annotation;

import com.yzy.fly.kernel.model.FlyBasicModel;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface RoleRelated {

    int order() default 0;

    Class<? extends FlyBasicModel> modelClass() default FlyBasicModel.class;

    String related() default "";

    String query() default "";
     //RelatedType
    Class<? extends FlyBasicModel> manyToManyModelClass() default FlyBasicModel.class;
}
